package Game;

import java.awt.image.BufferedImage;
import java.util.HashMap;
import java.util.Set;


public class Graphics {
	
	private Graphics() {};
	
	private static final HashMap<String, BufferedImage> graphics;
	
	static {
		graphics = new HashMap<String, BufferedImage>();
		graphics.put("circle", IO.loadGraphic(IO.getGraphic("circle")));
		graphics.put("cross", IO.loadGraphic(IO.getGraphic("cross")));
		graphics.put("MenuBar", IO.loadGraphic(IO.getGraphic("MenuBar")));
	}
	
	public static BufferedImage getGraphic(String name) {
		return graphics.get(name);
	}
	
	public static Set<String> getStrings() {
		return graphics.keySet();
	}
	
	public static void addGraphics(HashMap<String, BufferedImage> graphics) {
		Graphics.graphics.putAll(graphics);
	}

}
